package com.mercury.pattern._02_factory.simplefactory;

public class PizzShop {
    PizzFactory factory = new PizzFactory();

    void orderPizz(){
        Pizz pizz = factory.createPizz();
        pizz.prepare();
        pizz.bake();
        pizz.cut();
        pizz.box();
    }

    public static void main(String[] args) {
        PizzShop shop = new PizzShop();
        shop.orderPizz();
    }
}
